package com.base.cn.platform.os.service.course.agent.config;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.course.CourseBaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 分销配置接口
 *
 * @author LIZHIPENG
 * @since 2018/5/4
 */
@FeignClient(name = CourseBaseService.appName,configuration = FeignAuthConfig.class)
public interface AgentConfigService extends CourseBaseService {

    /**
     * 获取分销系统配置
     * @return
     */
    @RequestMapping(contextPath + "/queryAgentConfigList")
    Map<String, Object> queryAgentConfigList();

    /**
     * 保存分销配置
     * @param _params
     * @return
     */
    @RequestMapping(contextPath + "/saveAgentConfig")
    Map<String, Object> saveAgentConfig(@RequestParam("_params") String _params);
}
